package org.ncibi.cytoscape.metscape.data;


public enum Organism {
	HUMAN(9606), RAT(10116), MOUSE(10090);
	
	private final int taxid;
	private Organism(int taxid)
	{
		this.taxid = taxid;
	}
	
	public int getTaxid()
	{
		return taxid;
	}
	
	public String toString()
	{
		String name = super.toString().toLowerCase();
        name = String.format("%s%s", Character.toUpperCase(name.charAt(0)), name
                .substring(1));
        return name;
	}
	
	public static Organism toOrganism(int taxid)
    {
        for (Organism o : Organism.values())
        {
            if (o.taxid == taxid )
            {
                return o;
            }
        }
        
        return null;
    }

}
